//import Cookies from 'js-cookie'

// const TokenKey = 'vue_admin_template_token'

// export function getToken() {
//   return Cookies.get(TokenKey)
// }

// export function setToken(token) {
//   return Cookies.set(TokenKey, token)
// }

// export function removeToken() {
//   return Cookies.remove(TokenKey)
// }
const TokenKey = 'vue_admin_template_token' // 名称前台自定义, 没有特别要求
     //本地获取token
export function getToken() {
  // return Cookies.get(TokenKey)
  return localStorage.getItem(TokenKey)
}
    //本地存储token
export function setToken(token) {
  // return Cookies.set(TokenKey, token)
  localStorage.setItem(TokenKey, token)
}     
     // 清除本地token  
export function removeToken() {
  // return Cookies.remove(TokenKey)
  localStorage.removeItem(TokenKey)
}